<template>
  <div class="custom_skill">
    <div class="custom_skill_l"></div>
    <div class="custom_skill_r">
      <ul>
        <li v-for="item in sckillList">
          <router-link :to="'/detail/'+item.proid">
            <img :src="item.img1" alt="" />
            <p>{{ item.category }}</p>
          </router-link>
        </li>
      </ul>
    </div>
  </div>
</template>

<script setup>
// let {sckillList} = defineProps(['sckillList'])
// 运行时校验，
let { sckillList } = defineProps({
  sckillList: { type: Object },
});
console.log(sckillList);
</script>

<style scoped lang='less'>
.custom_skill {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  .custom_skill_l {
    width: 100px;
    height: 80px;
    background-color: red;
  }
  .custom_skill_r {
    height: 80px;
    flex: 1;
    overflow: auto;
    background-color: #f6f6f6;
    ul {
      display: flex;
      width: 300%;
      li {
        background-color: #fff;
        font-size: 12px;
        margin: 0px 10px;
        text-align: center;
        img {
          // width: 100%;
          height: 50px;
        }
      }
    }
  }
}
</style>